package com.example.spring.demo.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.ZonedDateTime;

/**
 * @author colter
 * 2018/12/2
 */
@Data
@ApiModel(description = "用户返回数据")
public class UserDto {
    @ApiModelProperty(name = "ID",dataType = "integer")
    private int id;
    @ApiModelProperty(name = "名字",dataType = "str",example = "小红")
    private String name;
    @ApiModelProperty(name = "生日",dataType = "ZonedDateTime",example = "2018-11-20 00:00:00")
    private ZonedDateTime birth;
}
